How to Develop an R Shiny Dashboard In 10 Minutes or Less {https://t.co/DIY459wFAo} #rstats #DataScience
— R-bloggers (@Rbloggers) January 25, 2022
Time Series Forecasting Lab (Part 1) – Introduction to Feature Engineering {https://t.co/lNWsuEBa5Q} #rstats #DataScience
— R-bloggers (@Rbloggers) January 22, 2022
Time Series Forecasting Lab (Part 3) – Machine Learning with Workflows {https://t.co/QHlBMs8iGt} #rstats #DataScience
— R-bloggers (@Rbloggers) January 22, 2022
How to join tables in R {https://t.co/axTchdaZs2} #rstats #DataScience
— R-bloggers (@Rbloggers) January 26, 2022
Understanding Lasso and Ridge Regression {https://t.co/NlI2AlEXsx} #rstats #DataScience
— R-bloggers (@Rbloggers) January 21, 2022
Detecting multicollinearity — it’s not that easy sometimes {https://t.co/4HXPQw5Bhi} #rstats #DataScience
— R-bloggers (@Rbloggers) January 21, 2022
ggplot tips: Assigning Labels to an Aesthetic {https://t.co/CVilAKoZOo} #rstats #DataScience
— R-bloggers (@Rbloggers) January 23, 2022
Analysing Whatsapp Group Chat Data {https://t.co/rRbdLiDeKY} #rstats #DataScience
— R-bloggers (@Rbloggers) January 22, 2022
6 simple Shiny things I have learned from creating a somewhat small app {https://t.co/I0ht76UhwF} #rstats #DataScience
— R-bloggers (@Rbloggers) January 22, 2022
ARIMA or Holt-Winters, Let’s Find Out! {https://t.co/e4w77zEgAF} #rstats #DataScience
— R-bloggers (@Rbloggers) January 22, 2022
A Structural Model of the World Happiness Report {https://t.co/Y9eRAi58aB} #rstats #DataScience
— R-bloggers (@Rbloggers) January 23, 2022
30 Day Map Challenge 2021 {https://t.co/D6rQMOaiXa} #rstats #DataScience
— R-bloggers (@Rbloggers) January 22, 2022
ggplot tips: Arranging plots {https://t.co/jMQsphD29J} #rstats #DataScience
— R-bloggers (@Rbloggers) January 22, 2022
Finally understanding what “statistical significance” and p-values mean: A simple example (w {https://t.co/MsbbkgSlDk} #rstats #DataScience
— R-bloggers (@Rbloggers) January 9, 2022
How to Develop an R Shiny Dashboard In 10 Minutes or Less {https://t.co/DIY459wFAo} #rstats #DataScience
— R-bloggers (@Rbloggers) January 25, 2022
Time Series Forecasting Lab (Part 1) – Introduction to Feature Engineering {https://t.co/lNWsuEBa5Q} #rstats #DataScience
— R-bloggers (@Rbloggers) January 22, 2022
Time Series Forecasting Lab (Part 3) – Machine Learning with Workflows {https://t.co/QHlBMs8iGt} #rstats #DataScience
— R-bloggers (@Rbloggers) January 22, 2022
Using bayesian optimisation to tune a XGBOOST model in R {https://t.co/fXXU4DMaEe} #rstats #DataScience
— R-bloggers (@Rbloggers) January 8, 2022
Tips for building a Twitter bot with R and Github Actions {https://t.co/FTrKW1S0zL} #rstats #DataScience
— R-bloggers (@Rbloggers) January 16, 2022
A package of Machine Learning datasets has arrived for R – MLDataR {https://t.co/VUSqbrTFem} #rstats #DataScience
— R-bloggers (@Rbloggers) January 5, 2022
Top 7 Best R Shiny Books and Courses That Are Completely Free {https://t.co/v8JBTXbhPr} #rstats #DataScience
— R-bloggers (@Rbloggers) January 6, 2022
Binary image classification using Keras in R: Using CT scans to predict patients with Covid {https://t.co/PZTKZC9TSu} #rstats #DataScience
— R-bloggers (@Rbloggers) January 2, 2022
Introduction to Geospatial Visualization with the tmap package {https://t.co/fPasXDp9jb} #rstats #DataScience
— R-bloggers (@Rbloggers) December 31, 2021
How To Connect R Shiny to Postgres Database – The Definite Guide {https://t.co/RXkj93s8IF} #rstats #DataScience
— R-bloggers (@Rbloggers) January 11, 2022
Using databases with Shiny {https://t.co/Og4tMdVVzF} #rstats #DataScience
— R-bloggers (@Rbloggers) January 2, 2022
---
title: "RBloggers Top Tweets"
output:
flexdashboard::flex_dashboard:
vertical_layout: scroll
source_code: embed
theme:
version: 4
bootswatch: yeti
css: styles/main.css
---
```{r setup, include=FALSE}
library(flexdashboard)
library(dplyr)
library(httr)
library(lubridate)
library(jsonlite)
library(purrr)
rbloggers <- fromJSON("data/rbloggers.json")
get_tweet_embed <- function(user, status_id) {
url <-
stringr::str_glue(
"https://publish.twitter.com/oembed?url=https://twitter.com/{user}/status/{status_id}&partner=&hide_thread=false"
)
response <- GET(url) %>%
content()
return(shiny::HTML(response$html))
}
```
Column {.tabset .tabset-fade}
-----------------------------------------------------------------------
### Top Tweets - 7 days {.tweet-wall}
```{r}
rblog_7 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 7, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_7_html <-
map2_chr(rblog_7$screen_name, rblog_7$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_7_html}"))
```
### Top Tweets - 30 days {.tweet-wall}
```{r}
rblog_30 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 30, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_30_html <-
map2_chr(rblog_30$screen_name, rblog_30$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_30_html}"))
```